<?php
namespace libs\qoy\Response;
/**
 * ResponseJson JSON响应类
 */

class Json extends Response {

    public function __construct() {
    	$this->addHeaders('Content-Type', 'application/json;charset=utf-8');
    }
    
    protected function formatResult($result) {
        return json_encode($result);
    }
    
}
